Reorder log level macro definitions for clarity
authorJohn Tsichritzis <[email protected]>
Fri, 7 Sep 2018 13:42:09 +0000 (14:42 +0100)
committerJohn Tsichritzis <[email protected]>
Wed, 10 Oct 2018 11:11:32 +0000 (12:11 +0100)
The definitions of the logging macros are reordered to be consistent
with the definitions of the log levels.

Change-Id: I6ff07b93eb64786ff147d39014d1c8e15db28444
Signed-off-by: John Tsichritzis <[email protected]>
include/common/debug.h

index 8ee55b8828b572a0cdc57139e3767011c56df24c..a14a66e859e1e883dbad1f3f35a820dce26f172d 100644 (file)
                }                                       \
        } while (false)
 
-#if LOG_LEVEL >= LOG_LEVEL_NOTICE
-# define NOTICE(...)   tf_log(LOG_MARKER_NOTICE __VA_ARGS__)
-#else
-# define NOTICE(...)   no_tf_log(LOG_MARKER_NOTICE __VA_ARGS__)
-#endif
-
 #if LOG_LEVEL >= LOG_LEVEL_ERROR
 # define ERROR(...)    tf_log(LOG_MARKER_ERROR __VA_ARGS__)
 #else
 # define ERROR(...)    no_tf_log(LOG_MARKER_ERROR __VA_ARGS__)
 #endif
 
+#if LOG_LEVEL >= LOG_LEVEL_NOTICE
+# define NOTICE(...)   tf_log(LOG_MARKER_NOTICE __VA_ARGS__)
+#else
+# define NOTICE(...)   no_tf_log(LOG_MARKER_NOTICE __VA_ARGS__)
+#endif
+
 #if LOG_LEVEL >= LOG_LEVEL_WARNING
 # define WARN(...)     tf_log(LOG_MARKER_WARNING __VA_ARGS__)
 #else